package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.swing.JTextField;
import vo.UserVo;

@Entity
public class EntityUser implements Serializable{

    @Id
    private int id;
    private String name;
    private String userName;
    private String pass;

    public UserVo toV(){
        UserVo vo = new UserVo();
        vo.setId(getId());
        vo.setName(getName());
        vo.setPass(getPass());
        vo.setUser(getUserName());
        return vo;
    }

    public int getId() {
        return id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String Name) {
        this.name = Name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }    
}
